// File:    Sinhvien.cs
// Author:  Administrator
// Created: Thursday, March 13, 2014 9:03:59 AM
// Purpose: Definition of Class Sinhvien

using System;

public class Sinhvien
{
   public int masv;
   public string hoten;
   public string gioitinh;
   public string diachi;
   
   public System.Collections.Generic.List<Monhoc> Diemthi;
   public Khoa tHUOC;
   
   /// <summary>
   /// Property for Khoa
   /// </summary>
   /// <pdGenerated>Default opposite class property</pdGenerated>
   public Khoa THUOC
   {
      get
      {
         return tHUOC;
      }
      set
      {
         if (this.tHUOC == null || !this.tHUOC.Equals(value))
         {
            if (this.tHUOC != null)
            {
               Khoa oldKhoa = this.tHUOC;
               this.tHUOC = null;
               oldKhoa.RemoveCO(this);
            }
            if (value != null)
            {
               this.tHUOC = value;
               this.tHUOC.AddCO(this);
            }
         }
      }
   }

}